using System;
using System.Runtime.InteropServices;

namespace BarcodePrinting.TSC
{
	public static class TscDll
	{
		[DllImport("TSCLib.dll")]
		internal static extern void openport(string sPrinterName);

		[DllImport("TSCLib.dll")]
		internal static extern void closeport();

		[DllImport("TSCLib.dll")]
		internal static extern void setup(string sLabelwidth, string sLabelheight, string sSpeed, string sDensity, string sSensor, string sVertical, string sOffset);

		[DllImport("TSCLib.dll")]
		internal static extern void clearbuffer();

		[DllImport("TSCLib.dll")]
		internal static extern void barcode(string x, string y, string sType, string sBarHeight, string sReadable, string sRotation, string sNarrow, string sWide, string sData);

		[DllImport("TSCLib.dll")]
		internal static extern void printerfont(string x, string y, string sFont, string sRotation, string sXExtend, string sYExtends, string sData);

		[DllImport("TSCLib.dll")]
		internal static extern void sendcommand(string command);

		[DllImport("TSCLib.dll")]
		internal static extern void printlabel(string sSet, string sCopy);

		[DllImport("TSCLib.dll")]
		internal static extern void downloadpcx(string sPath, string ID);

		[DllImport("TSCLib.dll")]
		internal static extern void formfeed();

		[DllImport("TSCLib.dll")]
		internal static extern void nobackfeed();

		[DllImport("TSCLib.dll")]
		internal static extern void windowsfont(int nX, int nY, int nHeight, int nRotation, int sStyle, int nUnderline, string sFontName, string sData);

		[DllImport("TSCLib.dll")]
		internal static extern void about();
	}
}
